Release 10.1A: OpenEdge Development:
Web Services
Creating server-side context for a ProcObject (running a persistent procedure)
Complete the steps that follow to create the server-side context for the ProcObject.
![]()
To create the context for a ProcObject on the AppServer:
- Run the persistent procedure, creating the ProcObject:
Caution: Now that the ProcObject is created, remember to release the object later, when it is no longer needed.
- Check to see if an object ID was returned:
- The
CustomerOrderObjStubobject is created from a factory method included in theOrderInfoObjStubobject. Therefore, thePscObjectIDHandlerbound to theOrderInfoObjStublocates and stores the object ID value for theCustomerOrderObjStubobject in theOrderInfoObjStubobject. Thus the client application must obtain (export) the object ID value for theCustomerOrderObjStubfrom theOrderInfoObjStubhandler and insert (import) it into theCustomerOrderObjStubhandler. For example:
This enables the
CustomerOrderObjStubhandler to automatically insert theCustomerOrderobject ID into the headers for all SOAP requests made on theCustomerOrderObjStubobject.- The client application must then remove (release) the object ID value for the
CustomerOrderObjStubobject from theOrderInfoObjStubhandler because it is no longer needed by that handler. For example:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |